<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="s in students">{{s.name}}</li>
        </ul>

        <!-- 打开浏览器的JS控制台，并修改app.message的值，将看到相应的更新 -->
        <label for="">{{message}}</label> 
        <span v-bind:title="message">

        </span> 
        <div v-if="canSee">你能看到我</div>
        <!-- {{message}} -->
    </div>

    <script>
        var app=new Vue({
            el:'#app',
            data:{
                // message:"Hello world!"
                students:[
                    {name:'黄慧敏'},
                    {name:'黄慧文'}
                ],
                message:'这个页面创建于'+new Date().toLocaleString(),
                canSee:true
            }
            
        })
    </script>
</body>
</html>